﻿using System;

namespace WhileFactorial
{
    class Program
    {
        static void Main(string[] args)
        {
            int n = 1;

            long factorial = 1;

            while(n < 15)
            {
                n++;
                // n = n + 1;
                factorial *= n;
                // factorial = factorial * n;
            }

            Console.WriteLine(n + "! = " + factorial);

            Console.ReadKey();
        }
    }
}
